package kr.hkit.androidcomplete01.chapter11;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import kr.hkit.androidcomplete01.R;

public class Ch11MainActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch11_main);
	}

	public void mOnClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.ch11_btn01:
			intent = new Intent(this, ReadResource.class);
			break;

		case R.id.ch11_btn02:
			intent = new Intent(this, StyleTest.class);
			break;
		
		case R.id.ch11_btn03:
			intent = new Intent(this, TextViewAttr.class);
			break;
			
		case R.id.ch11_btn04:
			intent = new Intent(this, TextChange.class);
			break;	
		case R.id.ch11_btn05:
			intent = new Intent(this, GramPrice.class);
			break;	
		case R.id.ch11_btn06:
			intent = new Intent(this, EditSelect.class);
			break;		
		case R.id.ch11_btn07:
			intent = new Intent(this, InputTypeTest.class);
			break;			
		case R.id.ch11_btn08:
			intent = new Intent(this, ShowHideKey.class);
			break;	
		case R.id.ch11_btn09:
			intent = new Intent(this, ArrowButton.class);
			break;		
		}
		startActivity(intent);
	}
}
